package headfirst._01strategy策略模式.Ducks;

import headfirst._01strategy策略模式.Duck;
import headfirst._01strategy策略模式.flybehaviors.FlyNoWay;
import headfirst._01strategy策略模式.quack.MuteQuack;

public class DecoyDuck extends Duck {
	public DecoyDuck() {
		setFlyBehavior(new FlyNoWay());
		setQuackBehavior(new MuteQuack());
	}


	public void display() {
		System.out.println("I'm a duck Decoy");
	}
}
